# -*- coding: utf-8 -*-

import os
import datetime
# os.path.isdir()
# print os.getcwd()
# print os.getcwdu()
# print os.listdir(".")






# root, dirs, files = os.path.walk(".", topdown=False)

# print root
# print dirs
# print file

# for root, dirs, files in os.walk(".", topdown=False):
#     for name in files:
#         print(os.path.join(root, name))
#     for name in dirs:
#         print(os.path.join(root, name))
# exit()

print os.name


exit()

import os
class difftool:


    def filepropertydiffer(self, file1, file2):

        '''
            about file's property
            http://stackoverflow.com/questions/237079/how-to-get-file-creation-modification-date-times-in-python
        '''

        if not os.path.exists(file1):
            raise Exception(file1 + 'file not exists')
        if not os.path.exists(file2 + 'file not exists'):
            raise Exception(file2 + 'file not exists')

        pass



    def differentiatedir(self, dir1, dir2, recursive=False):

        '''
            compare two directory's differences , never recurserve
        :param dir1:
        :param dir2:
        :param recursive:
        :return:
        '''

        if(recursive):
            list1 = os.listdir(dir1)
            list2 = os.listdir(dir2)
            # set1 = set(path1)
            # set2 = set(path2)

            # diff1 = set1.difference(set2)
            # diff2 = set2.difference(set1)

            print "exists in dir1 but not in dir2:" + str([x for x in list1 if x not in list2])
            print "exists in dir2 but not in dir1:" + str([x for x in list2 if x not in list1])
        else:


            pass



if __name__ == "__main__":



    exit()
    path1 = "D:/tmp/css/fonts"
    path2 = "D:/tmp/css/fonts2"
    difftool = difftool()
    difftool.differentiatedir(path1, path2)